﻿using AutoMapper;
using Yq.BookList.Blog.Dtos;

namespace Yq.BookList.Blog.Mapper
{
    public class PostMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configurationExpression)
        {
            configurationExpression.CreateMap<Post, PostListDto>();
            configurationExpression.CreateMap<PostEditDto, Post>();
            configurationExpression.CreateMap<Post, PostEditDto>();
            configurationExpression.CreateMap<Post, ShowOrHidePostDto>();
            configurationExpression.CreateMap<ShowOrHidePostDto, Post>();
        }
    }
}